const mongoose = require('mongoose');

const schema = new mongoose.Schema({
    platform: { type: String },
    username: { type: String },
  password: {
    type: String,
    select: false,
    set(val) {
      return require("bcryptjs").hashSync(val, 10)
    }
  }
});

module.exports = mongoose.model('User', schema)